package cn.zqy.demo.day06;


// 1.导包(import 包名.类名)  2.新建  3.使用
public class demo01Student {
    public static void main(String[] args) {
        Student stu = new Student();

        System.out.println("姓名："+ stu.name);
        System.out.println("年龄：" + stu.age);
        System.out.println("===================");
        System.out.println("===================");

        stu.name = "Tom";
        stu.age = 199;
        System.out.println("姓名："+ stu.name);
        System.out.println("年龄：" + stu.age);
        System.out.println("===================");

        stu.eat();
        stu.sleep();
        stu.study();
    }
}
